package huanzhao.erp.domain.types;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author April
 * 2024/6/13 下午6:27
 * @version 1.0
 */
@Getter
public enum TaskType {
    FIRST_CHECK("初检"),
    PURCHASE_RETURN("采购退货"),
    DESIGNATE_QC("分配质检员"),
    QC("质检"),
    ENTER("录入"),
    PUBLISH("上架"),
    PURCHASER_SEND_REPAIR("采购送修"),
    REPAIR_EVALUATE("维修评估"),
    DESIGNATE_REPAIR("分派维修"),
    REPAIR("维修"),
    OUTSOURCE_REPAIR_SHIP("送修发货"),
    OUTSOURCE_REPAIR_SIGN("送修签收"),
    FILL_OUTSOURCE_REPAIR_RESULT("送修结果填报"),
    RECEIVE_REPAIR("接收维修"),
    RECHECK("二次检查"),
    CHECK_WHEN_TRANSFER("转库检查"),
    RECEIVE_PUBLISH("接收上架"),
    STOCK("入库"),
    SHIP_WHEN_SALE("销售发货"),
    CHECK_AFTER_RETURN("退货后检查"),
    RECEIVE_AFTER_SALE("接收售后"),
    SHIP_WHEN_AFTER_SALE_FINISHED("售后结束发货"),

    // 开始为待接收状态的类型
    DISTRIBUTE("分货"),
    SIGN_FOR_AFTER_SALE("售后签收"),
    OUTBOUND_ONLY("仅出库"),
    TRANSFER("转库"),
    HANDLE_RETURN("处理退货");


    @EnumValue
    @JsonValue
    private final String value;

    TaskType(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }
}
